package com.anxin.entity.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import java.util.Date;

@Data
@ContentRowHeight(20) // 内容行高
@HeadRowHeight(25) // 表头行高
public class PatientInfoExcel {
    
    @ExcelProperty(value = "患者ID", index = 0)
    @ColumnWidth(36)
    private String id;
    
    @ExcelProperty(value = "用户ID", index = 1)
    @ColumnWidth(36)
    private String userId;
    
    @ExcelProperty(value = "身份证号", index = 2)
    @ColumnWidth(20)
    private String idCard;
    
    @ExcelProperty(value = "性别", index = 3)
    @ColumnWidth(10)
    private String gender;
    
    @ExcelProperty(value = "出生日期", index = 4)
    @ColumnWidth(15)
    @DateTimeFormat("yyyy-MM-dd")
    private Date birthDate;
    
    @ExcelProperty(value = "联系地址", index = 5)
    @ColumnWidth(30)
    private String address;
    
    @ExcelProperty(value = "紧急联系人", index = 6)
    @ColumnWidth(15)
    private String emergencyContact;
    
    @ExcelProperty(value = "紧急联系电话", index = 7)
    @ColumnWidth(15)
    private String emergencyPhone;
    
    @ExcelProperty(value = "过敏史", index = 8)
    @ColumnWidth(30)
    private String allergicHistory;
    
    @ExcelProperty(value = "既往病史", index = 9)
    @ColumnWidth(30)
    private String medicalHistory;
    
    @ExcelProperty(value = "创建时间", index = 10)
    @ColumnWidth(20)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    
    @ExcelProperty(value = "更新时间", index = 11)
    @ColumnWidth(20)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
} 